package a66weding.com.jiehuntong.dao.db;

import android.content.Context;
import android.database.DatabaseErrorHandler;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

/**
 * Created by admin on 2016/7/27.
 */
public class TastOpenHelper extends SQLiteOpenHelper {

    public TastOpenHelper(Context context){
        super(context, "tast.db", null, 1);
    }

    @Override
    public void onCreate(SQLiteDatabase db) {
        db.execSQL("create table tast (id integer primary key autoincrement, name varchar(20),flag varchar(20)) ");
    }

    @Override
    public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {

    }
}
